﻿using Company.Shell.Models;

namespace Company.Shell.Interfaces
{
    /// <summary>
    /// 硬件生命周期管理接口
    /// </summary>
    public interface IHardwareMananger
    {
        /// <summary>
        /// 是否全部初始化
        /// </summary>
        bool Initialized { get; }
        /// <summary>
        /// 异步初始化硬件
        /// </summary>
        /// <returns></returns>
        Task<InitializeResult> InitializeAsync();
        /// <summary>
        /// 关闭硬件
        /// </summary>
        void Close();
    }
}
